< previous page page_869 next page >

Page 869
(table continued from previous page)
PropertyNameSetting
MenuNamemnuHelp
Caption"&Help"
MenuNamemnuHelpAbout
Caption"&About"

As you build the menu, you need to set two additional properties of the &Windows menu item. Set the Index property to zero and set the WindowList property to True. This forces Visual Basic to create a dynamic list of all the child forms open under the SQLVBMain MDI form window.
The final step in completing the SQLVBMain form is adding the Visual Basic code that activates the various menu options selected by the user. Because most of that code calls other routines you have not yet written, skip the Visual Basic code for now; you get back to it at the end of the project.
Before continuing with the lesson, save this form as SQLVBMAI.FRM and save the project as SQLVB5.VBP.
Creating the SQLVBChild Child Form
The SQLVBChild child form displays any result set created by SQL statements in the script being processed. You need two controls on this forma data control and a data-bound grid control. Add a new form to your project by selecting Project | Add Form from the Visual Basic main menu. Use Table A.4 and Figure A.3 as guides for creating SQLVBChild.
0869-01.jpg
Figure A.3.
Laying out the SQLVBChild form.

 
< previous page page_869 next page >

If you like this book, buy it!